import { axios } from "../../../utils/request";

const api = {
    pageList: "/crm/callMode/pageList",   
    saveMode: "/crm/callMode/saveMode",
    delete: "/crm/callMode/delete"
};


/**
 * 列表
 */
export function pageList(data) {
    return axios({
      url: api.pageList,
      method: "post",
      data: data
    });
  }

/**
 * 保存
 */
export function save(data) {
  return axios({
    url: api.saveMode,
    method: "post",
    data: data
  });
}


/**
 * 删除
 */
export function deleteById(parameter) {
  return axios({
    url: api.delete,
    method: "DELETE",
    params: parameter
  });
}


